package com.shangdiao.sd_server.generator.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SdPInternshipExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SdPInternshipExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPIIdIsNull() {
            addCriterion("P_I_ID is null");
            return (Criteria) this;
        }

        public Criteria andPIIdIsNotNull() {
            addCriterion("P_I_ID is not null");
            return (Criteria) this;
        }

        public Criteria andPIIdEqualTo(Integer value) {
            addCriterion("P_I_ID =", value, "pIId");
            return (Criteria) this;
        }

        public Criteria andPIIdNotEqualTo(Integer value) {
            addCriterion("P_I_ID <>", value, "pIId");
            return (Criteria) this;
        }

        public Criteria andPIIdGreaterThan(Integer value) {
            addCriterion("P_I_ID >", value, "pIId");
            return (Criteria) this;
        }

        public Criteria andPIIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("P_I_ID >=", value, "pIId");
            return (Criteria) this;
        }

        public Criteria andPIIdLessThan(Integer value) {
            addCriterion("P_I_ID <", value, "pIId");
            return (Criteria) this;
        }

        public Criteria andPIIdLessThanOrEqualTo(Integer value) {
            addCriterion("P_I_ID <=", value, "pIId");
            return (Criteria) this;
        }

        public Criteria andPIIdIn(List<Integer> values) {
            addCriterion("P_I_ID in", values, "pIId");
            return (Criteria) this;
        }

        public Criteria andPIIdNotIn(List<Integer> values) {
            addCriterion("P_I_ID not in", values, "pIId");
            return (Criteria) this;
        }

        public Criteria andPIIdBetween(Integer value1, Integer value2) {
            addCriterion("P_I_ID between", value1, value2, "pIId");
            return (Criteria) this;
        }

        public Criteria andPIIdNotBetween(Integer value1, Integer value2) {
            addCriterion("P_I_ID not between", value1, value2, "pIId");
            return (Criteria) this;
        }

        public Criteria andPersonIdIsNull() {
            addCriterion("PERSON_ID is null");
            return (Criteria) this;
        }

        public Criteria andPersonIdIsNotNull() {
            addCriterion("PERSON_ID is not null");
            return (Criteria) this;
        }

        public Criteria andPersonIdEqualTo(Integer value) {
            addCriterion("PERSON_ID =", value, "personId");
            return (Criteria) this;
        }

        public Criteria andPersonIdNotEqualTo(Integer value) {
            addCriterion("PERSON_ID <>", value, "personId");
            return (Criteria) this;
        }

        public Criteria andPersonIdGreaterThan(Integer value) {
            addCriterion("PERSON_ID >", value, "personId");
            return (Criteria) this;
        }

        public Criteria andPersonIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("PERSON_ID >=", value, "personId");
            return (Criteria) this;
        }

        public Criteria andPersonIdLessThan(Integer value) {
            addCriterion("PERSON_ID <", value, "personId");
            return (Criteria) this;
        }

        public Criteria andPersonIdLessThanOrEqualTo(Integer value) {
            addCriterion("PERSON_ID <=", value, "personId");
            return (Criteria) this;
        }

        public Criteria andPersonIdIn(List<Integer> values) {
            addCriterion("PERSON_ID in", values, "personId");
            return (Criteria) this;
        }

        public Criteria andPersonIdNotIn(List<Integer> values) {
            addCriterion("PERSON_ID not in", values, "personId");
            return (Criteria) this;
        }

        public Criteria andPersonIdBetween(Integer value1, Integer value2) {
            addCriterion("PERSON_ID between", value1, value2, "personId");
            return (Criteria) this;
        }

        public Criteria andPersonIdNotBetween(Integer value1, Integer value2) {
            addCriterion("PERSON_ID not between", value1, value2, "personId");
            return (Criteria) this;
        }

        public Criteria andInternshipIdIsNull() {
            addCriterion("INTERNSHIP_ID is null");
            return (Criteria) this;
        }

        public Criteria andInternshipIdIsNotNull() {
            addCriterion("INTERNSHIP_ID is not null");
            return (Criteria) this;
        }

        public Criteria andInternshipIdEqualTo(Integer value) {
            addCriterion("INTERNSHIP_ID =", value, "internshipId");
            return (Criteria) this;
        }

        public Criteria andInternshipIdNotEqualTo(Integer value) {
            addCriterion("INTERNSHIP_ID <>", value, "internshipId");
            return (Criteria) this;
        }

        public Criteria andInternshipIdGreaterThan(Integer value) {
            addCriterion("INTERNSHIP_ID >", value, "internshipId");
            return (Criteria) this;
        }

        public Criteria andInternshipIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("INTERNSHIP_ID >=", value, "internshipId");
            return (Criteria) this;
        }

        public Criteria andInternshipIdLessThan(Integer value) {
            addCriterion("INTERNSHIP_ID <", value, "internshipId");
            return (Criteria) this;
        }

        public Criteria andInternshipIdLessThanOrEqualTo(Integer value) {
            addCriterion("INTERNSHIP_ID <=", value, "internshipId");
            return (Criteria) this;
        }

        public Criteria andInternshipIdIn(List<Integer> values) {
            addCriterion("INTERNSHIP_ID in", values, "internshipId");
            return (Criteria) this;
        }

        public Criteria andInternshipIdNotIn(List<Integer> values) {
            addCriterion("INTERNSHIP_ID not in", values, "internshipId");
            return (Criteria) this;
        }

        public Criteria andInternshipIdBetween(Integer value1, Integer value2) {
            addCriterion("INTERNSHIP_ID between", value1, value2, "internshipId");
            return (Criteria) this;
        }

        public Criteria andInternshipIdNotBetween(Integer value1, Integer value2) {
            addCriterion("INTERNSHIP_ID not between", value1, value2, "internshipId");
            return (Criteria) this;
        }

        public Criteria andInterviewTimeIsNull() {
            addCriterion("INTERVIEW_TIME is null");
            return (Criteria) this;
        }

        public Criteria andInterviewTimeIsNotNull() {
            addCriterion("INTERVIEW_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andInterviewTimeEqualTo(Date value) {
            addCriterion("INTERVIEW_TIME =", value, "interviewTime");
            return (Criteria) this;
        }

        public Criteria andInterviewTimeNotEqualTo(Date value) {
            addCriterion("INTERVIEW_TIME <>", value, "interviewTime");
            return (Criteria) this;
        }

        public Criteria andInterviewTimeGreaterThan(Date value) {
            addCriterion("INTERVIEW_TIME >", value, "interviewTime");
            return (Criteria) this;
        }

        public Criteria andInterviewTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("INTERVIEW_TIME >=", value, "interviewTime");
            return (Criteria) this;
        }

        public Criteria andInterviewTimeLessThan(Date value) {
            addCriterion("INTERVIEW_TIME <", value, "interviewTime");
            return (Criteria) this;
        }

        public Criteria andInterviewTimeLessThanOrEqualTo(Date value) {
            addCriterion("INTERVIEW_TIME <=", value, "interviewTime");
            return (Criteria) this;
        }

        public Criteria andInterviewTimeIn(List<Date> values) {
            addCriterion("INTERVIEW_TIME in", values, "interviewTime");
            return (Criteria) this;
        }

        public Criteria andInterviewTimeNotIn(List<Date> values) {
            addCriterion("INTERVIEW_TIME not in", values, "interviewTime");
            return (Criteria) this;
        }

        public Criteria andInterviewTimeBetween(Date value1, Date value2) {
            addCriterion("INTERVIEW_TIME between", value1, value2, "interviewTime");
            return (Criteria) this;
        }

        public Criteria andInterviewTimeNotBetween(Date value1, Date value2) {
            addCriterion("INTERVIEW_TIME not between", value1, value2, "interviewTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("CREATE_TIME is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("CREATE_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("CREATE_TIME =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("CREATE_TIME <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("CREATE_TIME >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("CREATE_TIME >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("CREATE_TIME <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("CREATE_TIME <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("CREATE_TIME in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("CREATE_TIME not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("CREATE_TIME between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("CREATE_TIME not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("STATUS is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("STATUS is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("STATUS =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("STATUS <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("STATUS >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("STATUS >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("STATUS <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("STATUS <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("STATUS in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("STATUS not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("STATUS between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("STATUS not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andSourceIsNull() {
            addCriterion("SOURCE is null");
            return (Criteria) this;
        }

        public Criteria andSourceIsNotNull() {
            addCriterion("SOURCE is not null");
            return (Criteria) this;
        }

        public Criteria andSourceEqualTo(Integer value) {
            addCriterion("SOURCE =", value, "source");
            return (Criteria) this;
        }

        public Criteria andSourceNotEqualTo(Integer value) {
            addCriterion("SOURCE <>", value, "source");
            return (Criteria) this;
        }

        public Criteria andSourceGreaterThan(Integer value) {
            addCriterion("SOURCE >", value, "source");
            return (Criteria) this;
        }

        public Criteria andSourceGreaterThanOrEqualTo(Integer value) {
            addCriterion("SOURCE >=", value, "source");
            return (Criteria) this;
        }

        public Criteria andSourceLessThan(Integer value) {
            addCriterion("SOURCE <", value, "source");
            return (Criteria) this;
        }

        public Criteria andSourceLessThanOrEqualTo(Integer value) {
            addCriterion("SOURCE <=", value, "source");
            return (Criteria) this;
        }

        public Criteria andSourceIn(List<Integer> values) {
            addCriterion("SOURCE in", values, "source");
            return (Criteria) this;
        }

        public Criteria andSourceNotIn(List<Integer> values) {
            addCriterion("SOURCE not in", values, "source");
            return (Criteria) this;
        }

        public Criteria andSourceBetween(Integer value1, Integer value2) {
            addCriterion("SOURCE between", value1, value2, "source");
            return (Criteria) this;
        }

        public Criteria andSourceNotBetween(Integer value1, Integer value2) {
            addCriterion("SOURCE not between", value1, value2, "source");
            return (Criteria) this;
        }

        public Criteria andDelCIsNull() {
            addCriterion("DEL_C is null");
            return (Criteria) this;
        }

        public Criteria andDelCIsNotNull() {
            addCriterion("DEL_C is not null");
            return (Criteria) this;
        }

        public Criteria andDelCEqualTo(Integer value) {
            addCriterion("DEL_C =", value, "delC");
            return (Criteria) this;
        }

        public Criteria andDelCNotEqualTo(Integer value) {
            addCriterion("DEL_C <>", value, "delC");
            return (Criteria) this;
        }

        public Criteria andDelCGreaterThan(Integer value) {
            addCriterion("DEL_C >", value, "delC");
            return (Criteria) this;
        }

        public Criteria andDelCGreaterThanOrEqualTo(Integer value) {
            addCriterion("DEL_C >=", value, "delC");
            return (Criteria) this;
        }

        public Criteria andDelCLessThan(Integer value) {
            addCriterion("DEL_C <", value, "delC");
            return (Criteria) this;
        }

        public Criteria andDelCLessThanOrEqualTo(Integer value) {
            addCriterion("DEL_C <=", value, "delC");
            return (Criteria) this;
        }

        public Criteria andDelCIn(List<Integer> values) {
            addCriterion("DEL_C in", values, "delC");
            return (Criteria) this;
        }

        public Criteria andDelCNotIn(List<Integer> values) {
            addCriterion("DEL_C not in", values, "delC");
            return (Criteria) this;
        }

        public Criteria andDelCBetween(Integer value1, Integer value2) {
            addCriterion("DEL_C between", value1, value2, "delC");
            return (Criteria) this;
        }

        public Criteria andDelCNotBetween(Integer value1, Integer value2) {
            addCriterion("DEL_C not between", value1, value2, "delC");
            return (Criteria) this;
        }

        public Criteria andDelPIsNull() {
            addCriterion("DEL_P is null");
            return (Criteria) this;
        }

        public Criteria andDelPIsNotNull() {
            addCriterion("DEL_P is not null");
            return (Criteria) this;
        }

        public Criteria andDelPEqualTo(Integer value) {
            addCriterion("DEL_P =", value, "delP");
            return (Criteria) this;
        }

        public Criteria andDelPNotEqualTo(Integer value) {
            addCriterion("DEL_P <>", value, "delP");
            return (Criteria) this;
        }

        public Criteria andDelPGreaterThan(Integer value) {
            addCriterion("DEL_P >", value, "delP");
            return (Criteria) this;
        }

        public Criteria andDelPGreaterThanOrEqualTo(Integer value) {
            addCriterion("DEL_P >=", value, "delP");
            return (Criteria) this;
        }

        public Criteria andDelPLessThan(Integer value) {
            addCriterion("DEL_P <", value, "delP");
            return (Criteria) this;
        }

        public Criteria andDelPLessThanOrEqualTo(Integer value) {
            addCriterion("DEL_P <=", value, "delP");
            return (Criteria) this;
        }

        public Criteria andDelPIn(List<Integer> values) {
            addCriterion("DEL_P in", values, "delP");
            return (Criteria) this;
        }

        public Criteria andDelPNotIn(List<Integer> values) {
            addCriterion("DEL_P not in", values, "delP");
            return (Criteria) this;
        }

        public Criteria andDelPBetween(Integer value1, Integer value2) {
            addCriterion("DEL_P between", value1, value2, "delP");
            return (Criteria) this;
        }

        public Criteria andDelPNotBetween(Integer value1, Integer value2) {
            addCriterion("DEL_P not between", value1, value2, "delP");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}